package com.example;

//import org.activiti.spring.boot.SecurityAutoConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

import com.example.base.repository.BaseRepositoryImpl;

@MapperScan(basePackages="com.example.mapper")
@SpringBootApplication(exclude = SecurityAutoConfiguration.class)
@EnableJpaRepositories( repositoryBaseClass = BaseRepositoryImpl.class)
@EnableCaching
@ServletComponentScan
public class DemoApplication extends SpringBootServletInitializer {
	//如果采用注解这种方式，感觉都可以不用放在这个地方
	//只要在spring容器启动的时候被扫描到就行了

	public static void main(String[] args) {
		SpringApplication.run(DemoApplication.class, args);
	}

}
